package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/08/09 09:53
 */
@RestController
public class HelloController {

    @RequestMapping("hello")
    public BaseRespVo hello() {
        System.out.println("hello world handler");
        return BaseRespVo.ok("hello");
    }
    @RequestMapping("goodbye")
    public BaseRespVo goodbye() {
        System.out.println("byebye");
        return BaseRespVo.ok("byebye");
    }
}
